/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.race.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.lczyfz.istep.common.persistence.DataEntity;

/**
 * 赛程管理Entity
 * @author CY
 * @version 2017-04-26
 */
public class RaceSchedule extends DataEntity<RaceSchedule> {
	
	private static final long serialVersionUID = 1L;
	private String repertoryId;		// 竞赛题库id
	private String scheduleStatus;		// 赛程状态
	private String scheduleName;		// 赛程名称
	private String scheduleNotice;		// 赛程公告
	private String scheduleLogo;		// 赛程logo
	private String switchTime;       //队伍切换时间
	private String displaySize;		// 展示粒度
	private Date beginTime;		// 比赛开始时间
	private Date endTime;		// 比赛结束时间
	private Date extendTime;		// 比赛延长时间
	private String plusReluI;		// 加分规则1
	private String plusReluIi;		// 加分规则2
	private String plusReluIii;		// 加分规则3
	private String plusReluIv;		// 加分规则4
	private String plusReluV;		// 加分规则5
	
	public RaceSchedule() {
		super();
	}

	public RaceSchedule(String id){
		super(id);
	}

	@Length(min=0, max=64, message="竞赛题库id长度必须介于 0 和 64 之间")
	public String getRepertoryId() {
		return repertoryId;
	}

	public void setRepertoryId(String repertoryId) {
		this.repertoryId = repertoryId;
	}
	
	@Length(min=0, max=4, message="赛程状态长度必须介于 0 和 4 之间")
	public String getScheduleStatus() {
		return scheduleStatus;
	}

	public void setScheduleStatus(String scheduleStatus) {
		this.scheduleStatus = scheduleStatus;
	}
	
	@Length(min=0, max=64, message="赛程名称长度必须介于 0 和 64 之间")
	public String getScheduleName() {
		return scheduleName;
	}

	public void setScheduleName(String scheduleName) {
		this.scheduleName = scheduleName;
	}
	
	@Length(min=0, max=256, message="赛程公告长度必须介于 0 和 256 之间")
	public String getScheduleNotice() {
		return scheduleNotice;
	}

	public void setScheduleNotice(String scheduleNotice) {
		this.scheduleNotice = scheduleNotice;
	}
	
	@Length(min=0, max=256, message="赛程logo长度必须介于 0 和 256 之间")
	public String getScheduleLogo() {
		return scheduleLogo;
	}

	public void setScheduleLogo(String scheduleLogo) {
		this.scheduleLogo = scheduleLogo;
	}

	@Length(min = 0, max = 64, message = "队伍切换时间长度必须介于 0 和 64 之间")
	public String getSwitchTime() {
		return switchTime;
	}

	public void setSwitchTime(String switchTime) {
		this.switchTime = switchTime;
	}



	@Length(min=0, max=64, message="展示粒度长度必须介于 0 和 64 之间")
	public String getDisplaySize() {
		return displaySize;
	}

	public void setDisplaySize(String displaySize) {
		this.displaySize = displaySize;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getExtendTime() {
		return extendTime;
	}

	public void setExtendTime(Date extendTime) {
		this.extendTime = extendTime;
	}
	
	@Length(min=0, max=64, message="加分规则1长度必须介于 0 和 64 之间")
	public String getPlusReluI() {
		return plusReluI;
	}

	public void setPlusReluI(String plusReluI) {
		this.plusReluI = plusReluI;
	}
	
	@Length(min=0, max=64, message="加分规则2长度必须介于 0 和 64 之间")
	public String getPlusReluIi() {
		return plusReluIi;
	}

	public void setPlusReluIi(String plusReluIi) {
		this.plusReluIi = plusReluIi;
	}
	
	@Length(min=0, max=64, message="加分规则3长度必须介于 0 和 64 之间")
	public String getPlusReluIii() {
		return plusReluIii;
	}

	public void setPlusReluIii(String plusReluIii) {
		this.plusReluIii = plusReluIii;
	}
	
	@Length(min=0, max=64, message="加分规则4长度必须介于 0 和 64 之间")
	public String getPlusReluIv() {
		return plusReluIv;
	}

	public void setPlusReluIv(String plusReluIv) {
		this.plusReluIv = plusReluIv;
	}
	
	@Length(min=0, max=64, message="加分规则5长度必须介于 0 和 64 之间")
	public String getPlusReluV() {
		return plusReluV;
	}

	public void setPlusReluV(String plusReluV) {
		this.plusReluV = plusReluV;
	}
	
}